package com.company.project.common.job.task;

import com.company.project.common.redismq.ZSetVer;
import com.company.project.common.utils.StringUtil;
import com.company.project.mapper.TSeatsMapper;
import com.company.project.service.RedisService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Slf4j
@Component("tMiddlenumTask")
public class TMiddlenumTask {
    @Resource
    public TSeatsMapper tSeatsMapper;
    @Resource
    public RedisService redisService;
    @Resource
    private ZSetVer zSetVer;
    public final static String RS_ZS_MQ_ME = "consumerDelayMessage:";
    public void run(String params) {
        String key = "tMiddlenum";
        String s = redisService.get(RS_ZS_MQ_ME+key);
        if (StringUtil.equals("false",s)||StringUtil.isBlank(s)) {
            zSetVer.consumerDelayMessageData(key);
        }
    }




}
